package com.lovi.service;

import com.lovi.dao.EmployeeDao;
import com.lovi.domain.Employee;

public class EmployeeService {
    private EmployeeDao employeeDao = new EmployeeDao();

    public Employee getEmployeeByIdAndPwd(String empId, String pwd) {
        Employee employee = employeeDao.getOneById(Employee.class, "select * from employee where empId = ? and pwd = md5(?)", empId, pwd);
        return employee;

    }
}
